.index {
    padding: 10px 10px 60px;

    // 红色背景
    .slider-bg {
        background-image: linear-gradient(0deg,#f1503b,#c82519 50%);
        position: absolute;
        top: 0;
        left: -25%;
        height: 7.25rem;
        width: 150%;
        border-bottom-left-radius: 100%;
        border-bottom-right-radius: 100%;
        z-index: -1;
    }

    // 搜索框
    .search-bar-box {
        position: relative;

        .nut-searchbar__search-input {
            box-sizing: border-box;
        }

        .nut-searchbar {
            background-color: transparent;
            padding-left: 0;
            padding-right: 0;
        }

        .nut-icon-photograph {
            right: 55px;
        }

        .nut-button {
            position: absolute;
            right: 3px;
            top: 11px;
            background: #f00;
            width: 48px;
            height: 28px;
            font-size: 12px;
            padding: 0;
        }
    }

    // 导航
    .nav-box {
        position: relative;

        .nav {
            display: flex;
            white-space: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            color: #fff;
            font-size: 16px;
            height: 30px;
            margin-bottom: 10px;
            margin-right: 30px;
    
            .nav-item {
                margin-right: 15px;
                position: relative;

                .nut-icon-joy-smile {
                    display: none;
                }

                &.cur {
                    .nut-icon-joy-smile {
                        display: inline-block;
                        position: absolute;
                        left: 50%;
                        margin-left: -10px;
                        margin-top: 13px;
                    }
                }
            }
        }

        .nut-icon {
            position: absolute;
            right: 0;
            top: 1px;
            color: #fff;
        }
    }

    // banner 轮播图
    .banner {
        .nut-swiper-item {
            border-radius: 10px;
            overflow: hidden;
        }

        img {
            width: 350px;
            height: 140px;
            border-radius: 10px;
            margin-left: 3px;
        }
    }

    // icons 图标
    .icons {
        display: flex;
        flex-wrap: wrap;

        .icon {
            margin-right: 10px;
            text-align: center;
            width: 58px;

            &:nth-child(5n) {
                margin-right: 0;
            }

            &:nth-child(-n + 5) {
                margin-bottom: 10px;
            }
        }

        img {
            width: 50px;
            height: 50px;
        }

        .name {
            font-size: 11px;
        }

        .nut-swiper-pagination {
            bottom: 6px;
        }

        .nut-swiper-inner {
            height: auto !important;
            width: 710px !important;
        }

        .nut-swiper-item {
            display: flex;
            flex-wrap: wrap;
        }

        .nut-grid-item__content--center {
            border: 0;
        }

        .nut-grid {
            border: 0;
        }

        .nut-grid-item {
            flex-basis: 20% !important;
        }

        .nut-grid-item__text {
            font-size: 10px;
        }

        .nut-grid-item__content {
            padding: 10px 5px;
        }
    }

    // 通知
    .notice {
        position: relative;
        background-color: #fff;
        border-radius: 5px;
        overflow: hidden;

        .notice {
            position: absolute;
            bottom: 0;
            width: 100%;
        }

        .nut-noticebar-page {
            height: 30px;
            font-size: 10px;
            padding-left: 0;
            padding-right: 0;
        }
    }

    // 秒杀
    .seckill {
        margin-top: 10px;
        border-radius: 10px;
        background-image: linear-gradient(rgba(pink, 0.3), #fff);
        padding: 10px;

        &-top {
            display: flex;
            justify-content: space-between;
        }

        &-title-countdown {
            display: flex;
            align-items: center;
        }

        &-title {
            font-size: 14px;
            margin-right: 10px;
        }

        &-countdown {
            display: flex;
            line-height: 18px;
            border: 1px solid red;
            border-radius: 20px;
            padding-right: 10px;
            overflow: hidden;
        }

        &-countdown-type {
            color: #fff;
            background-color: #f00;
            padding-left: 5px;
            padding-right: 5px;
            font-size: 12px;
        }

        .nut-countdown {
            color: red;
            font-size: 12px;
            padding-left: 10px;
        }

        &-arrow-box {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: gray;
        }

        &-bottom {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            margin-top: 10px;
        }

        &-product {
            text-align: center;
            margin-right: 10px;

            img {
                width: 55px;
                height: 55px;
            }

            &-price {
                color: red;
                font-size: 13px;
            }
        }
    }

    // 主商品区域
    .main-products {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .main-product {
            flex-basis: 172px;
            margin-bottom: 15px;

            &-image {
                width: 100%;
                height: 172px;
                border-radius: 10px;
                overflow: hidden;
                margin-bottom: 8px;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            &-name {
                line-height: 22px;
                font-size: 16px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }

            .comment-points {
                display: flex;
                justify-content: space-between;
                align-items: center;

                .comment {
                    color: #999;
                    font-size: 12px;
                }

                .points {
                    display: flex;
                }

                .point {
                    width: 3px;
                    height: 3px;
                    background-color: #999;
                    border-radius: 50%;
                    margin-right: 3px;
                }
            }
        }
    }
}